Skip to content

Migrate to CRDs#72

Merged
openshift-merge-robot merged 12 commits intoopenshift:crdfrom
ingvagabund:crd
Oct 22, 2018
Merged

Migrate to CRDs#72
openshift-merge-robot merged 12 commits intoopenshift:crdfrom
ingvagabund:crd

Conversation

@ingvagabund
Copy link
Copy Markdown
Member

@ingvagabund ingvagabund commented Oct 19, 2018

Migrate to CRDs:

  • New api generation and layout based on kubebuilder
    -- kubebuilder init --domain k8s.io --license apache2 --owner “The Kubernetes Authors”
    -- kubebuilder create api --group awsproviderconfig --version v1alpha1 --kind AWSMachineProviderConfig
  • Move the cloud/ code from root folder into pkg/cloud
  • revendor
  • Fix machine status, provider status
  • Update tests/ and cmd/libvirt-actuator
  • Update docker file and Make

How to run it:
kustomize build vendor/sigs.k8s.io/cluster-api/config/default/ >> cluster-api-bootstrap.yaml
kubectl apply -f cluster-api-bootstrap.yaml
make manager
./bin/manager

How to regenerate code:
go generate ./pkg/... ./cmd/...

paulfantom and others added 6 commits October 19, 2018 21:44
Run `kubebuilder init --domain k8s.io --license apache2 --owner "The Kubernetes Authors"`.

When the command asks for running `dep ensure`, update the Gopkg.toml to constrain
the cluster-api project to its master branch, plus copy-paste all the non-k8s constraints
that were in the original Gopkg.toml needed by the libvirt actuator implementation itself.

Then, confirm you want to run `dep ensure`.

The dep ensure command may run multiple times before you finally generate all the deps.
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 19, 2018
@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Oct 19, 2018
@ingvagabund
Copy link
Copy Markdown
Member Author

/approve

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ingvagabund

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 19, 2018
@ingvagabund ingvagabund mentioned this pull request Oct 19, 2018
8 tasks
@ingvagabund
Copy link
Copy Markdown
Member Author

/test e2e

@ingvagabund ingvagabund changed the title WIP: Crd Migrate to CRDs Oct 20, 2018
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 20, 2018
Comment thread cmd/manager/main.go

machineactuator.MachineActuator, err = machineactuator.NewActuator(params)
if err != nil {
glog.Fatalf("Could not create AWS machine actuator: %v", err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libvirt

Comment thread cmd/manager/main.go

machineactuator.MachineActuator, err = machineactuator.NewActuator(params)
if err != nil {
glog.Fatalf("Could not create AWS machine actuator: %v", err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libvirt

@enxebre
Copy link
Copy Markdown
Member

enxebre commented Oct 22, 2018

aws string reference 60019a5#diff-9e63f7b0791edcb4a53c944552b88970R114
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2018
@vikaschoudhary16
Copy link
Copy Markdown
Contributor

/lgtm

@enxebre
Copy link
Copy Markdown
Member

enxebre commented Oct 22, 2018

/lgtm

@enxebre
Copy link
Copy Markdown
Member

enxebre commented Oct 22, 2018

/lgtm

@enxebre enxebre added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Oct 22, 2018
@ingvagabund ingvagabund removed the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2018
@enxebre enxebre added the lgtm Indicates that a PR is ready to be merged. label Oct 22, 2018
@openshift-merge-robot openshift-merge-robot merged commit 63281b6 into openshift:crd Oct 22, 2018
@ingvagabund ingvagabund deleted the crd branch October 22, 2018 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants